<template>
  <!-- 系统基础配置 -->
  <ConfigProvider :locale="locale">
    <router-view />
    <MicroInitPage />
  </ConfigProvider>
</template>
<script>
  import { defineComponent } from 'vue';
  import { watchI18n } from '@common/locales';
  import { ConfigProvider } from 'ant-design-vue';
  import '@/assets/styles/theme.less';
  import { useInitialize } from './hooks/use-initialize';
  import MicroInitPage from './views/pages/micro-init.vue';
  export default defineComponent({
    components: {
      ConfigProvider, // ant系统配置
      MicroInitPage,
    },
    setup() {
      // 国际化处理
      const { locale } = watchI18n();
      // 主应用初始化
      useInitialize();
      return { locale };
    },
  });
</script>
